<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            line-height: 150px;
        }
        div{
            display: inline-block;
        }
        .con1 {
            width: 200px;
            height: 200px;
            background-color: aqua;
            transition: 1s  transform;
        }
        .con1:hover{
            transform: translate(500px, 100px);
        }

        .con2 {
            width: 100px;
            height: 100px;
            background-color: rgb(255, 60, 0);
            transition: 1s  transform
        }
        .con2:hover{
            transform: scale(2, 3);
        }
        .con3{
            width: 100px;
            height: 100px;
            background-color: green;
            transition: 1s transform;
        }
        .con3:hover{
            transform: rotate(180deg);
        }
        .con4{
            width: 100px;
            height: 100px;
            color: aliceblue;
            background-color: black;
            transform: skew(10deg,10deg);
        }
        .con5{
            width: 100px;
            height: 100px;
            font-size: 10px;
            background-color: blanchedalmond;
            transform: matrix(2,1,1,2,100,200);
        }

    </style>
</head>

<body>
    <h1>鼠标移动有动画</h1>
    <div class="con1">平移</div>
    <div class="con2">长宽伸缩</div>
    <div class="con3">旋转</div>
    <div class="con4">x,y轴偏移</div>
    <div class="con5">matrix(scaleX(),skewY(),skewX(),scaleY(),
        translateX(),translateY())</div>
</body>

</html>